package org.sdp.pearproject.dto.convert;

import org.sdp.pearproject.dao.domain.*;
import org.sdp.pearproject.dto.request.*;
import java.util.Date;

/**
 * @ClassName: ProjectForAccountBaseRequestConvert
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-20
 * @Version: 1.0
 * Table: pear_project
 * Comment:
 * 项目表
 */
public class ProjectForAccountBaseRequestConvert extends BaseConvert {
    public static ProjectForAccountBase convert(ProjectForAccountBaseRequest request) throws Exception {
        ProjectForAccountBase daoRequest = new ProjectForAccountBase();
        copyProperties(request, daoRequest);

        daoRequest.setCode(daoRequest.getCode() == null ? null : daoRequest.getCode().trim());
        daoRequest.setMemberCode(daoRequest.getMemberCode() == null ? null : daoRequest.getMemberCode().trim());
        daoRequest.setOrganizationCode(daoRequest.getOrganizationCode() == null ? null : daoRequest.getOrganizationCode().trim());
        daoRequest.setDepartmentCode(daoRequest.getDepartmentCode() == null ? null : daoRequest.getDepartmentCode().trim());
        daoRequest.setAuthorize(daoRequest.getAuthorize() == null ? null : daoRequest.getAuthorize().trim());
        daoRequest.setName(daoRequest.getName() == null ? null : daoRequest.getName().trim());
        daoRequest.setMobile(daoRequest.getMobile() == null ? null : daoRequest.getMobile().trim());
        daoRequest.setEmail(daoRequest.getEmail() == null ? null : daoRequest.getEmail().trim());
        daoRequest.setCreateTime(daoRequest.getCreateTime() == null ? null : daoRequest.getCreateTime().trim());
        daoRequest.setLastLoginTime(daoRequest.getLastLoginTime() == null ? null : daoRequest.getLastLoginTime().trim());
        daoRequest.setDescription(daoRequest.getDescription() == null ? null : daoRequest.getDescription().trim());
        daoRequest.setAvatar(daoRequest.getAvatar() == null ? null : daoRequest.getAvatar().trim());
        daoRequest.setPosition(daoRequest.getPosition() == null ? null : daoRequest.getPosition().trim());
        daoRequest.setDepartment(daoRequest.getDepartment() == null ? null : daoRequest.getDepartment().trim());
        daoRequest.setDepartments(daoRequest.getDepartments() == null ? null : daoRequest.getDepartments().trim());
        daoRequest.setMembarAccountCode(daoRequest.getMembarAccountCode() == null ? null : daoRequest.getMembarAccountCode().trim());
        daoRequest.setMemberCodeCamel(daoRequest.getMemberCodeCamel() == null ? null : daoRequest.getMemberCodeCamel().trim());
        daoRequest.setMemberAvatar(daoRequest.getMemberAvatar() == null ? null : daoRequest.getMemberAvatar().trim());

        return daoRequest;
    }
}
